package com.eorchis.module.signupdept.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;



import org.hibernate.annotations.GenericGenerator;

import com.eorchis.core.basedao.entity.IBaseEntity;

/**
 * Title: SignupDept<br>
 * Description: 报名单位实体对象<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author Max
 * @createDate 2014-12-29
 * @version $Revision$
 */
@Entity
@Table(name = "SIGNUP_DEPT")
public class SignupDept implements IBaseEntity {
	private static final long serialVersionUID = 1L;

	private String id;//ID
	private String depid;//部门ID
	private String depname;//部门名称
	private String parentId;//父级ID
	private String treepath;//树路径
	private String orderNum;//排序
	
	/**
	 * 获取ID
	 */	
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name="ID")
	public String getId() {
		return id;
	}
	/**
	 * 设置ID
	 */		
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * 获取部门ID
	 */	
	@Column(name="DEPID")
	public String getDepid() {
		return depid;
	}
	/**
	 * 设置部门ID
	 */		
	public void setDepid(String depid) {
		this.depid = depid;
	}
	/**
	 * 获取部门名称
	 */	
	@Column(name="DEPNAME")
	public String getDepname() {
		return depname;
	}
	/**
	 * 设置部门名称
	 */		
	public void setDepname(String depname) {
		this.depname = depname;
	}
	/**
	 * 获取父级ID
	 */	
	@Column(name="PARENT_ID")
	public String getParentId() {
		return parentId;
	}
	/**
	 * 设置父级ID
	 */		
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	/**
	 * 获取树路径
	 */	
	@Column(name="TREEPATH")
	public String getTreepath() {
		return treepath;
	}
	/**
	 * 设置树路径
	 */		
	public void setTreepath(String treepath) {
		this.treepath = treepath;
	}
	

	/**
	 * 记录日志使用
	 */
	public String toString() {
		return "ID======>" + getId()+"\n部门ID======>" + getDepid()+"\n部门名称======>" + getDepname()+"\n父级ID======>" + getParentId()+"\n树路径======>" + getTreepath();
	}
	@Column(name="ORDER_NUM")
	public String getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(String orderNum) {
		this.orderNum = orderNum;
	}
	
	
}
